package com.ts.feign.api;


import com.ts.common.entity.ResponseResult;;
import com.ts.feign.dto.SessionDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


import java.util.Map;


/**
 * 
 *
 * @author Ywl 193363874@qq.com
 * @since 1.0.0 2023-07-15
 */
@FeignClient(value="ts-session",path="/session")
public interface SessionServices {
    @GetMapping("/page")
    ResponseResult page(@RequestParam Map<String, Object> params);

    @GetMapping("{id}")
    ResponseResult get(@PathVariable("id") Long id);

    @PostMapping
    ResponseResult save(@RequestBody SessionDTO dto);
}